package com.xctech.yace.swing.tab;

import com.xctech.yace.swing.subTab.MonitorSwing;

import javax.swing.*;

public class YaceTabSwing {

    public static String title = "压测";

    public static JSplitPane genYACESplitPanel() {
        //发送画板
        JPanel send = new JPanel();
        //监控画板
        JPanel monitor = new JPanel();

        JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, send, monitor);
        splitPane.setDividerLocation(1100);

        placeComponentsYACERight(monitor);
        placeComponentsYACELeft(send);
        return splitPane;
    }

    public static void placeComponentsYACERight(JComponent panel){
        panel.add(new JLabel("待开发。。。。"));
    }

    public static void placeComponentsYACELeft(JComponent panel){
        panel.add(new JLabel("待开发。。。。"));
    }

}
